package map;

import java.util.Map;
import java.util.Set;
import java.util.TreeMap;

public class Test2 {
    public static void main(String[] args) {
        Map<String,Integer>map = new TreeMap<>();
        map.put("gyuasgdgi",11);
        map.put("puase",77);
        map.put("asadgi",99);
        map.put("fsagdgi",55);
        map.put("cvbdgi",33);
        map.put("ztyu",22);
        Set<Map.Entry<String, Integer>> entries = map.entrySet();
        for (Map.Entry<String, Integer> entry : entries) {
            String key = entry.getKey();
            Integer value = entry.getValue();

            System.out.println(key+"-----"+value);
        }


    }
}
